<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <#--引入外部文件-->
    <#include "../common/header.ftl">

    <script type="application/javascript">
        $(function () {

        })

    </script>
</head>
<body>

<div class="container" style="margin-top: 20px">
    <#include "../common/top.ftl">
    <div class="row">
        <div class="col-sm-3">
            <#include "../common/menu.ftl">
        </div>
        <div class="col-sm-9">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">商品交易记录</h1>
                </div>
            </div>
            <#--高级查询--->
            <form class="form-inline" id="searchForm" action="/transactionRecord/list.do" method="post">
                <input type="hidden" name="currentPage" id="currentPage" value="1">
            </form>

            <table class="table table-striped table-hover" >
                <tr>
                    <th>编号</th>
                    <th>买家</th>
                    <th>商品名称</th>
                    <th>成交价格</th>
                    <th>成交时间</th>
                    <th></th>
                </tr>
                <#--使用Freemark的指令完成循环迭代-->
                <#list (pageInfo.list)! as entity>
                    <tr>
                        <td>${entity_index + 1}</td>
                        <td>${entity.buyer.nickName}</td>
                        <td>${entity.commodity.name}</td>
                        <td>${entity.dealPrice}</td>
                        <td>${entity.dealTime?string("yyyy-MM-dd")}</td>
                        <td>
                            <a href="javascript:" data-url="/transactionRecord/delete.do?id=${entity.id!}" class="btn btn-danger btn-xs deleteBtn">
                                <span class="glyphicon glyphicon-remove"></span> 删除
                            </a>
                        </td>
                    </tr>
                </#list>
            </table>

            <#include "../common/page.ftl">
        </div>
    </div>
</div>

</body>
</html>